home *** CD-ROM | disk | FTP | other *** search
/ Next Step: Mars? / Next Step Mars (1994)(IVI).iso / pssword.fls / 00045_Script_45 < prev   
Text File  |  1994-11-23  |  782b  |  27 lines

  1. on passKeyDown
  2.  
  3.   --We have hacked around the editable field of password
  4.   -- and I put all the characters in myself
  5.   SET THE TEXTFONT OF FIELD "PASSWORD" TO "ARIAL"
  6.   SET THE TEXTSIZE OF FIELD "PASSWORD" TO 36
  7.   SET THE TEXTSTYLE OF FIELD "PASSWORD" TO "BOLD"
  8.   SET THE FORECOLOR of cast "PASSWORD" to 5
  9.   SET THE BACKCOLOR of cast  "PASSWORD" to 255
  10.   
  11.   if the key = BACKSPACE  then -- delete last char and exit
  12.     put the number of chars in field "PASSWORD" into numChars
  13.     put chars(field "PASSWORD",1,numChars-1) into field "PASSWORD"
  14.     exit
  15.   end if
  16.   
  17.   -- else put char on screen
  18.   put field "PASSWORD"&the key into field "PASSWORD"
  19.   
  20.   if the key = RETURN or the key = ENTER then
  21.     go to frame "ENTER"
  22.   end if
  23.   
  24.   
  25.   updateStage
  26.   
  27. end